//
//  Station.h
//  TrainTrack
//
//  Created by Philip Bruce on 5/10/08.
//  Copyright 2008 Den Falske Zebra. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <sqlite3.h>

@interface Station : NSObject {
	NSString *name;
	CLLocation *location;
	CLLocationDistance distanceFromCurrentLocation;
	NSString *distanceFromCurrentLocationText;
}

@property(nonatomic, copy) NSString *name;
@property(nonatomic, retain) CLLocation *location;
@property(nonatomic, assign) CLLocationDistance distanceFromCurrentLocation;
@property(nonatomic, copy) NSString *distanceFromCurrentLocationText;

// methods
+(NSArray *)findAllSortedByDistanceToLocation:(CLLocation *)loc;
+(void)setDatabase:(sqlite3 *)db;
+(void)findAll;

-(NSComparisonResult)compareDistances:(Station *)station;

@end
